package com.suyuan.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 产品类型
 */
public class ProducetypeInfo implements Serializable{
    /**
     * 产品类型编号
     */
    private Integer gid;

    /**
     * 类型名称
     */
    private String proctypename;

    /**
     * 使用状态
     */
    private Integer state;

    /**
     * 添加日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date recaddtime;

    /**
     * 创建人编号
     */
    private Integer creator;

    /**
     * 附加说明
     */
    private String recmemo;

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getProctypename() {
        return proctypename;
    }

    public void setProctypename(String proctypename) {
        this.proctypename = proctypename == null ? null : proctypename.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getRecaddtime() {
        return recaddtime;
    }

    public void setRecaddtime(Date recaddtime) {
        this.recaddtime = recaddtime;
    }

    public Integer getCreator() {
        return creator;
    }

    public void setCreator(Integer creator) {
        this.creator = creator;
    }

    public String getRecmemo() {
        return recmemo;
    }

    public void setRecmemo(String recmemo) {
        this.recmemo = recmemo == null ? null : recmemo.trim();
    }

    public ProducetypeInfo(){}

    public ProducetypeInfo(Integer gid, String proctypename, Integer state, Date recaddtime, Integer creator, String recmemo) {
        this.gid = gid;
        this.proctypename = proctypename;
        this.state = state;
        this.recaddtime = recaddtime;
        this.creator = creator;
        this.recmemo = recmemo;
    }

    @Override
    public String toString() {
        return "ProducetypeInfo{" +
                "gid=" + gid +
                ", proctypename='" + proctypename + '\'' +
                ", state=" + state +
                ", recaddtime=" + recaddtime +
                ", creator=" + creator +
                ", recmemo='" + recmemo + '\'' +
                '}';
    }
}